﻿<%@ WebHandler Language="C#" Class="WeixinHandler" %>

using System;
using System.Web;
using System.Web.SessionState;
public class WeixinHandler : IHttpHandler,IRequiresSessionState
{
    public bool IsReusable
    {
        get { return true; }
    }
    /// <summary>
    /// 处理请求
    /// </summary>
    /// <param name="context"></param>
    public void ProcessRequest(HttpContext context)
    {
        ////由微信服务接收请求，具体处理请求
        Dln.Handler.WeiXinService wxService = new Dln.Handler.WeiXinService(context.Request);
        string responseMsg = wxService.Response();
        context.Response.Clear();
        context.Response.Charset = "UTF-8";
        context.Response.Write(responseMsg);
        context.Response.End();

 
    }

}